<?php
require_once 'models/acl.inc';

/**
 * @author dkrasilnikov@gmail.com
 * @orm.table client(user)
 */
class TMSClient extends TMSUser {
/**
 * @var string
 * @orm.scalar client.firstname
 */	
	public $Name;
/**
 * @var string
 * @orm.scalar client.secondname
 */	
	public $Patronymic;
/**
 * @var string
 * @orm.scalar client.lastname
 */	
	public $Surname;
	
/**
 * @var date
 * @orm.scalar client.birthday
 */	
	public $BirthDay;
/**
 * @var string
 * @orm.scalar client.mobile
 */	
	public $Mobile;
/**
 * @var string
 * @orm.scalar client.address
 */	
	public $Address;
/**
 * @var string
 * @orm.scalar client.phone
 */	
	public $Phone;
	
	public function __toString(){
		return $this->Name?$this->Name:parent::__toString();
	}
}
